function [bits] = genrandbits (number)

bits = round(rand(1, number));